package com.linglan.common.enums;

public enum ClientType {
    /**
     * 微信小程序端
     */
    MINI("MINI"),
    /**
     * 手机 web端
     */
    M_WEB("M_WEB");

    public static ClientType getClientType(String name) {
        for (ClientType item : ClientType.values()) {
            if (item.getName().equalsIgnoreCase(name)) {
                return item;
            }
        }
        return null;
    }

    private String name;

    public String getName() {
        return name;
    }

    ClientType(String name) {
        this.name = name;
    }
}
